package com.design.pattern.template;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author goujian
 * @description: TODO
 * @date 2022/3/14 1:45 下午
 */
@Component
@Data
@Slf4j
public class MakeSmallCar extends AbstractMakeCar{

    @Override
    public void makeCar() {
        super.makeCar();
    }

    /**
     * 实现钩子函数
     */
    @Override
    protected void selectSize() {
        log.info("选择小尺寸，造小车");
    }
}
